﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class aspx_admin_news_insert : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            (this.fv新闻中心.FindControl("发布时间TextBox") as TextBox).Text = DateTime.Now.ToString();
            (this.fv新闻中心.FindControl("发布者TextBox") as TextBox).Text = "教务处";
            (this.fv新闻中心.FindControl("显示CheckBox") as CheckBox).Checked = true;
            (this.fv新闻中心.FindControl("txt重要性") as TextBox).Text = "10";
        }
    }

    protected void fv新闻中心_ItemInserted(object sender, FormViewInsertedEventArgs e)
    {
        WebHelper.MessageBox.Show("添加成功！", "insert.aspx");
    }
}